package com.sliface.web.core;

import java.io.IOException;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class CommonFunction {
    public static Object getHttpParamValue(HttpServletRequest req,int i){
    	if(i==0){
    		return "lianjie.chen@qq.com";
    	}else{
    		return "asdfasdf";
    	}
    	
    }
    public static void toJson(HttpServletResponse res,Object object,String targetPage){
    	 try {
			res.getWriter().println("object");
			res.flushBuffer();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
    }    
}
